package com.jpa;

import org.springframework.boot.SpringApplication; 
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.jpa.zk.EmbeddedZooKeeper;


@EnableTransactionManagement
@SpringBootApplication
@EnableCaching
@ComponentScan(basePackages = {"com.jpa.config","com.jpa.service","com.jpa.dao", "com.jpa.entity","com.jpa.redis" })
public class Application {

	public static void main(String[] args) {
	new EmbeddedZooKeeper(2181, false).start();
		SpringApplication.run(Application.class, args);
	}
}
